package com.dinian.zeus.mapper;

import com.dinian.zeus.domain.Newspaper;
import com.dinian.zeus.domain.ResponseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: dinian
 * @Date: 2018/11/18
 */
public interface NewspaperMapper {

    Newspaper selectNewspaperById(@Param("id") Integer id);

    List<Newspaper> selectNewspapers();

    List<ResponseVO> selectNewspapersByConditions(Newspaper newspaper);

    int insertNewspaper(Newspaper newspaper);

    void updateNewspaper(Newspaper newspaper);

    void deleteNewspaperByIds(Integer[] ids);
}
